package com.cskaoyan.service;

import com.cskaoyan.bean.bo.*;
import com.cskaoyan.bean.vo.CartCheckOutVo;
import com.cskaoyan.bean.vo.CartIndexTransferVo;
import com.cskaoyan.bean.vo.WxCheckoutVO;

/**
 * @author XuBang
 * @TODO:
 * @date 2021/10/22$
 * @trainOfthought:
 */
public interface WxCartService {
    void addCart(CartAddJsonBo cartAddJsonBo, Integer id);

    void updateCart(CartUpdateJsonBo cartUpdateJsonBo);

    Integer fastaddCart(CartFastAddJsonBo cartFastAddJsonBo,Integer id);

    CartIndexTransferVo indexCart(Integer id);

    CartIndexTransferVo deleteCart(Integer id, ProductIds productIds);

    CartIndexTransferVo checkedCart(Integer id, CartCheckedBo cartCheckedBo);

//    CartCheckOutVo checkoutCart(Integer id, CartCheckoutBo cartCheckoutBo);
    WxCheckoutVO checkout(Integer userId, WxCartFastAddBo wxCartFastAddBo);

    // 根据用户id,获取购物车中商品的总个数
    int selectGoodsNum(Integer userId);
}
